<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> -->
    <script src="../../node_modules/vue/dist/vue.global.js"></script>
</head>

<body>
    <div id="app">
        <!-- 表单修饰符 -->
        <!-- 01: .lazy 将表单的input 事件改为change 事件 -->
        <input type="text" v-model.lazy="msg">
        <!-- 02: .number 将用户输入的内容变为number-->
        <input type="text" v-model.number="num">
        <!-- 03:.trim 去掉 首尾空格 -->
        <input type="text" v-model.trim="msg">
    </div>
</body>

</html>
<script>
    const { createApp } = Vue;
    const vm = createApp({
        data() {
            return {
                message1: 'Hello',
                msg: '逗你玩',
                num: 100
            }
        }
    }).mount('#app') 
</script>